<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link id="easyuiTheme" rel="stylesheet" type="text/css"	href="${pageContext.request.contextPath }/js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/default.css">
<link href="${pageContext.request.contextPath }/js/kindeditor-4.1.10/themes/default/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/ajaxfileupload.js"></script>
<script src="${pageContext.request.contextPath }/js/common.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script src="${pageContext.request.contextPath }/js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
</head>


<body>
<div style="padding:10px 10px 10px 10px" id="EditFormDiv">

	<form id="EditForm" class="itemForm" method="post" enctype="multipart/form-data">
		<input type="hidden" name="id" />
		<input type="hidden" name="levelclass" />
		<input type="hidden" name="createtime" />
		<input type="hidden" name="sort" />
		<input type="hidden" name="isDelete" />
		<table cellpadding="5">
			<tr>
				<td>姓名:</td>
				<td><input class="easyui-validatebox" required="true" type="text" name="name"  style="width: 280px;"/></td>
			</tr>
			<tr>
				<td>头像:</td>
				<td>
					<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearImg()">清空图片</a>
					<a href="javascript:void(0)" class="easyui-linkbutton picFileUpload">上传图片</a>
					<%--<input id="imgUrl" type="hidden" name="headImg"/>--%>
					<input id="imgUrl" type="hidden" name="imgUrl"/>
				</td>
			</tr>
			<tr>
				<td>公司职务:</td>
				<td><input class="easyui-validatebox" required="true" type="text" name="job"  style="width: 280px;"/></td>
			</tr>
			<tr>
				<td>会员职称:</td>
				<td>
					<%--<input class="easyui-validatebox" required="true" type="text" name="levelname"  style="width: 280px;"/>--%>
					<select name="levelname" class="easyui-combobox" required="true" style="width: 150px;">
						<%--会员职称（1-理事会主席 2-理事会荣誉理事长 3-理事会特别顾问 4-理事会理事长 5-理事）--%>
						<option value="1">理事会主席</option>
						<option value="2">理事会荣誉理事长</option>
						<option value="3">理事会特别顾问</option>
						<option value="4">理事会理事长</option>
						<option value="5">理事</option>
					</select>
				</td>
			</tr>

			<tr>
				<td>个人简介:</td>
				<td>
					<textarea style="width:800px;height:400px;visibility:hidden;" name="content1"></textarea>
				</td>
			</tr>
			<tr>
				<td>公司简介:</td>
				<td>
					<textarea style="width:800px;height:400px;visibility:hidden;" name="content2"></textarea>
				</td>
			</tr>
		</table>

	</form>
	<div style="padding:5px">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
	</div>
</div>
<script type="text/javascript">
	//清空图片组件
	function clearImg(){
		//选择图片全部清除
    	$(".pics ul li").remove();
    	//清空原有值
    	$("#imgUrl").val("");
	}

	function submitForm() {
		//有效验证
		if (!$('#EditForm').form('validate')) {
			$.messager.alert('提示', '表单还未填写完成!');
			return;
		}
		
		//提交表单
		$.post("${pageContext.request.contextPath}/admin/vipuser/update.do", $(
				"#EditForm").serialize(), function(data) {
			if (data.status == 200) {
				$.messager.alert('提示', '修改成功!', 'info', function() {
					$("#EditWindow").window('close');
					$("#articleList").datagrid("reload");
				});
			}
		},'json');
	}
	
</script>

</body>


